@echo off
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
set filename=bookloft24_%mydate%_%mytime%.cbak

pg_dump -Fc --dbname=postgresql://zhangwei:root@book.loft/bookloft -f %filename% 